import { requestData, requestPostData } from "@/utils/request.js";

//查询菜单列表
export function reqPacketMenu(param, callback){
	requestData("/menu/packet", param, res => {
		callback(res);
	});
}

//增加菜单
export function reqMenuInsert(param, callback){
	requestPostData("/menu/insert", param, res => {
		callback(res);
	});
}

//编辑菜单
export function reqMenuUpdate(param, callback){
	requestPostData("/menu/update", param, res => {
		callback(res);
	});
}

//删除菜单
export function reqMenuDelete(param, callback){
	requestPostData("/menu/delete", param, res => {
		callback(res);
	});
}

//查询角色列表
export function reqPacketRole(param, callback){
	requestData("/role/packet", param, res => {
		callback(res);
	});
}

//增加角色
export function reqRoleInsert(param, callback){
	requestPostData("/role/insert", param, res => {
		callback(res);
	});
}

//编辑角色
export function reqRoleUpdate(param, callback){
	requestPostData("/role/update", param, res => {
		callback(res);
	});
}

//删除角色
export function reqRoleDelete(param, callback){
	requestPostData("/role/delete", param, res => {
		callback(res);
	});
}

//查询菜单权限列表
export function reqPacketRoleMenu(param, callback){
	requestData("/role/packetMenu", param, res => {
		callback(res);
	});
}

//设置菜单权限列表
export function reqSetRoleMenu(param, callback){
	requestPostData("/role/setPermissions", param, res => {
		callback(res);
	});
}

//查询用户列表
export function reqPacketUser(param, callback){
	requestData("/user/packet", param, res => {
		callback(res);
	});
}

//增加用户
export function reqUserInsert(param, callback){
	requestPostData("/user/insert", param, res => {
		callback(res);
	});
}

//编辑用户
export function reqUserUpdate(param, callback){
	requestPostData("/user/update", param, res => {
		callback(res);
	});
}

//删除用户
export function reqUserDelete(param, callback){
	requestPostData("/user/delete", param, res => {
		callback(res);
	});
}

//查询部门列表
export function reqPacketDepart(param, callback){
	requestData("/department/packet", param, res => {
		callback(res);
	});
}

//增加部门
export function reqDepartInsert(param, callback){
	requestPostData("/department/insert", param, res => {
		callback(res);
	});
}

//编辑部门
export function reqDepartUpdate(param, callback){
	requestPostData("/department/update", param, res => {
		callback(res);
	});
}

//删除部门
export function reqDepartDelete(param, callback){
	requestPostData("/department/delete", param, res => {
		callback(res);
	});
}

//登录
export function reqUserLogin(param, callback){
	requestPostData("/user/login", param, res => {
		callback(res);
	});
}

//修改密码
export function reqUserUpdatePass(param, callback){
	requestPostData("/user/updatePass", param, res => {
		callback(res);
	});
}

//重置密码
export function reqUserResetPass(param, callback){
	requestPostData("/user/resetPass", param, res => {
		callback(res);
	});
}

//查询已设置的角色
export function reqUserRole(param, callback){
	requestData("/user/packetRole", param, res => {
		callback(res);
	});
}

//设置角色
export function reqUserSetRole(param, callback){
	requestPostData("/user/setRole", param, res => {
		callback(res);
	});
}

//查询资产列表
export function reqPacketAssets(param, callback){
	requestData("/assets/packet", param, res => {
		callback(res);
	});
}

//增加资产
export function reqAssetsInsert(param, callback){
	requestPostData("/assets/insert", param, res => {
		callback(res);
	});
}

//编辑资产
export function reqAssetsUpdate(param, callback){
	requestPostData("/assets/update", param, res => {
		callback(res);
	});
}

//删除资产
export function reqAssetsDelete(param, callback){
	requestPostData("/assets/delete", param, res => {
		callback(res);
	});
}

//查询维修记录列表
export function reqPacketRepairAssets(param, callback){
	requestData("/assetsRepair/packet", param, res => {
		callback(res);
	});
}

//增加维修记录【申请】
export function reqRepairAssetsInsert(param, callback){
	requestPostData("/assetsRepair/insert", param, res => {
		callback(res);
	});
}

//审核维修记录
export function reqRepairAssetsExamine(param, callback){
	requestPostData("/assetsRepair/examine", param, res => {
		callback(res);
	});
}

//撤回维修记录
export function reqRepairAssetsWithdraw(param, callback){
	requestPostData("/assetsRepair/withdraw", param, res => {
		callback(res);
	});
}

//删除维修记录
export function reqRepairAssetsDelete(param, callback){
	requestPostData("/assetsRepair/delete", param, res => {
		callback(res);
	});
}

//查询领用记录列表
export function reqPacketCollectAssets(param, callback){
	requestData("/assetsCollect/packet", param, res => {
		callback(res);
	});
}

//增加领用记录
export function reqCollectAssetsInsert(param, callback){
	requestPostData("/assetsCollect/insert", param, res => {
		callback(res);
	});
}

//审核领用记录
export function reqCollectAssetsExamine(param, callback){
	requestPostData("/assetsCollect/examine", param, res => {
		callback(res);
	});
}

//删除领用记录
export function reqCollectAssetsDelete(param, callback){
	requestPostData("/assetsCollect/delete", param, res => {
		callback(res);
	});
}

//撤回领用记录
export function reqCollectAssetsWithdraw(param, callback){
	requestPostData("/assetsCollect/withdraw", param, res => {
		callback(res);
	});
}

//归还物资
export function reqCollectAssetsBack(param, callback){
	requestPostData("/assetsCollect/back", param, res => {
		callback(res);
	});
}

//查询加班列表
export function reqPacketOvertime(param, callback){
	requestData("/workOvertime/packet", param, res => {
		callback(res);
	});
}

//增加加班
export function reqOvertimeInsert(param, callback){
	requestPostData("/workOvertime/insert", param, res => {
		callback(res);
	});
}

//审核加班
export function reqOvertimeExamine(param, callback){
	requestPostData("/workOvertime/examine", param, res => {
		callback(res);
	});
}

//删除加班
export function reqOvertimeDelete(param, callback){
	requestPostData("/workOvertime/delete", param, res => {
		callback(res);
	});
}

//撤回加班
export function reqOvertimeWithdraw(param, callback){
	requestPostData("/workOvertime/withdraw", param, res => {
		callback(res);
	});
}

//查询年假维护列表
export function reqPacketAnnualLeave(param, callback){
	requestData("/annualLeave/packet", param, res => {
		callback(res);
	});
}

//增加年假维护
export function reqAnnualLeaveInsert(param, callback){
	requestPostData("/annualLeave/insert", param, res => {
		callback(res);
	});
}

//编辑年假维护
export function reqAnnualLeaveUpdate(param, callback){
	requestPostData("/annualLeave/update", param, res => {
		callback(res);
	});
}

//删除年假维护
export function reqAnnualLeaveDelete(param, callback){
	requestPostData("/annualLeave/delete", param, res => {
		callback(res);
	});
}

//查询年假消费列表
export function reqPacketAnnualConsume(param, callback){
	requestData("/annualLeaveConsume/packet", param, res => {
		callback(res);
	});
}

//删除年假消费
export function reqAnnualConsumeDelete(param, callback){
	requestPostData("/annualLeaveConsume/delete", param, res => {
		callback(res);
	});
}

//查询年假结算列表
export function reqPacketSettlement(param, callback){
	requestData("/annualLeaveSettlement/packet", param, res => {
		callback(res);
	});
}

//增加年假结算
export function reqSettlementInsert(param, callback){
	requestPostData("/annualLeaveSettlement/insert", param, res => {
		callback(res);
	});
}

//删除年假结算
export function reqSettlementDelete(param, callback){
	requestPostData("/annualLeaveSettlement/delete", param, res => {
		callback(res);
	});
}

//查询请假列表
export function reqPacketLeave(param, callback){
	requestData("/leave/packet", param, res => {
		callback(res);
	});
}

//增加请假
export function reqLeaveInsert(param, callback){
	requestPostData("/leave/insert", param, res => {
		callback(res);
	});
}

//撤回请假
export function reqLeaveWithdraw(param, callback){
	requestPostData("/leave/withdraw", param, res => {
		callback(res);
	});
}

//审核请假
export function reqLeaveExamine(param, callback){
	requestPostData("/leave/examine", param, res => {
		callback(res);
	});
}

//查询工时结算列表
export function reqPacketWorkSettlement(param, callback){
	requestData("/workSettlement/packet", param, res => {
		callback(res);
	});
}

//增加工时结算
export function reqWorkSettlementInsert(param, callback){
	requestPostData("/workSettlement/insert", param, res => {
		callback(res);
	});
}

//编辑工时结算
export function reqWorkSettlementUpdate(param, callback){
	requestPostData("/workSettlement/update", param, res => {
		callback(res);
	});
}

//删除工时结算
export function reqWorkSettlementDelete(param, callback){
	requestPostData("/workSettlement/delete", param, res => {
		callback(res);
	});
}

//查询工时结算明细列表
export function reqPacketWorkSettlementDetails(param, callback){
	requestData("/workSettlementDetailed/packet", param, res => {
		callback(res);
	});
}

//增加工时结算明细
export function reqWorkSettlementDetailsInsert(param, callback){
	requestPostData("/workSettlementDetailed/insert", param, res => {
		callback(res);
	});
}

//删除工时结算明细
export function reqWorkSettlementDetailsDelete(param, callback){
	requestPostData("/workSettlementDetailed/delete", param, res => {
		callback(res);
	});
}

//查询出差列表
export function reqPacketBusinessTravel(param, callback){
	requestData("/businessTravel/packet", param, res => {
		callback(res);
	});
}

//增加出差
export function reqBusinessTravelInsert(param, callback){
	requestPostData("/businessTravel/insert", param, res => {
		callback(res);
	});
}

//编辑出差
export function reqBusinessTravelUpdate(param, callback){
	requestPostData("/businessTravel/update", param, res => {
		callback(res);
	});
}

//审核出差
export function reqBusinessTravelExamine(param, callback){
	requestPostData("/businessTravel/examine", param, res => {
		callback(res);
	});
}

//撤回出差
export function reqBusinessTravelWithdraw(param, callback){
	requestPostData("/businessTravel/withdraw", param, res => {
		callback(res);
	});
}

//查询日志列表
export function reqPacketWorkLog(param, callback){
	requestData("/workLog/packet", param, res => {
		callback(res);
	});
}

//查询统计日志列表
export function reqStatisticsWorkLog(param, callback){
	requestData("/workLog/statistics", param, res => {
		callback(res);
	});
}

//查询统计日志详情列表
export function reqStatisticsDetailsWorkLog(param, callback){
	requestData("/workLog/statisticsDetails", param, res => {
		callback(res);
	});
}

//增加日志
export function reqWorkLogInsert(param, callback){
	requestPostData("/workLog/insert", param, res => {
		callback(res);
	});
}

//编辑日志
export function reqWorkLogUpdate(param, callback){
	requestPostData("/workLog/update", param, res => {
		callback(res);
	});
}

//删除日志
export function reqWorkLogDelete(param, callback){
	requestPostData("/workLog/delete", param, res => {
		callback(res);
	});
}

//查询流程列表
export function reqPacketProcess(param, callback){
	requestData("/process/packet", param, res => {
		callback(res);
	});
}

//增加流程
export function reqProcessInsert(param, callback){
	requestPostData("/process/insert", param, res => {
		callback(res);
	});
}

//编辑流程
export function reqProcessUpdate(param, callback){
	requestPostData("/process/update", param, res => {
		callback(res);
	});
}

//删除流程
export function reqProcessDelete(param, callback){
	requestPostData("/process/delete", param, res => {
		callback(res);
	});
}

//查询流程详情列表
export function reqPacketDetailsProcess(param, callback){
	requestData("/procedureDetailed/packet", param, res => {
		callback(res);
	});
}

//增加流程详情
export function reqProcessDetailsInsert(param, callback){
	requestPostData("/procedureDetailed/insert", param, res => {
		callback(res);
	});
}

//编辑流程详情
export function reqProcessDetailsUpdate(param, callback){
	requestPostData("/procedureDetailed/update", param, res => {
		callback(res);
	});
}

//删除流程详情
export function reqProcessDetailsDelete(param, callback){
	requestPostData("/procedureDetailed/delete", param, res => {
		callback(res);
	});
}

//查询项目分类列表
export function reqPacketProjectClass(param, callback){
	requestData("/projectClass/packet", param, res => {
		callback(res);
	});
}

//增加项目分类
export function reqProjectClassInsert(param, callback){
	requestPostData("/projectClass/insert", param, res => {
		callback(res);
	});
}

//编辑项目分类
export function reqProjectClassUpdate(param, callback){
	requestPostData("/projectClass/update", param, res => {
		callback(res);
	});
}

//删除项目分类
export function reqProjectClassDelete(param, callback){
	requestPostData("/projectClass/delete", param, res => {
		callback(res);
	});
}

//查询项目
export function reqPacketProject(param, callback){
	requestData("/project/packet", param, res => {
		callback(res);
	});
}

//增加项目
export function reqProjectInsert(param, callback){
	requestPostData("/project/insert", param, res => {
		callback(res);
	});
}

//编辑项目
export function reqProjectUpdate(param, callback){
	requestPostData("/project/update", param, res => {
		callback(res);
	});
}

//删除项目
export function reqProjectDelete(param, callback){
	requestPostData("/project/delete", param, res => {
		callback(res);
	});
}

//查询特殊假期
export function reqSpecialHolidaysProject(param, callback){
	requestData("/specialHolidays/packet", param, res => {
		callback(res);
	});
}

//增加特殊假期
export function reqSpecialHolidaysInsert(param, callback){
	requestPostData("/specialHolidays/insert", param, res => {
		callback(res);
	});
}

//编辑特殊假期
export function reqSpecialHolidaysUpdate(param, callback){
	requestPostData("/specialHolidays/update", param, res => {
		callback(res);
	});
}

//删除特殊假期
export function reqSpecialHolidaysDelete(param, callback){
	requestPostData("/specialHolidays/delete", param, res => {
		callback(res);
	});
}

//加班统计
export function reqWorkOvertimeStatistics(param, callback){
	requestData("/workOvertime/statistics", param, res => {
		callback(res);
	});
}

//请假统计
export function reqLeaveStatistics(param, callback){
	requestData("/leave/statistics", param, res => {
		callback(res);
	});
}

//推送消息查询
export function reqPushmessage(param, callback){
	requestData("/messagePush/packet", param, res => {
		callback(res);
	});
}
//推送消息增加
export function reqInsertmessage(param, callback){
	requestPostData("/messagePush/insert", param, res => {
		callback(res);
	});
}

//推送消息修改
export function reqUpdatermessage(param, callback){
	requestPostData("/messagePush/update", param, res => {
		callback(res);
	});
}

//推送消息删除
export function reqDeletemessage(param, callback){
	requestPostData("/messagePush/delete", param, res => {
		callback(res);
	});
}

//滚动图片查询
export function reqPicturemessage(param, callback){
	requestData("/rollPicture/packet", param, res => {
		callback(res);
	});
}

//滚动图片增加
export function reqinsPicturemessage(param, callback){
	requestPostData("/rollPicture/insert", param, res => {
		callback(res);
	});
}

//滚动图片数据删除
export function reqdelPicturemessage(param, callback){
	requestPostData("/rollPicture/delete", param, res => {
		callback(res);
	});
}

//滚动图片修改
export function requpdatePicmessage(param,callback){
	requestPostData("/rollPicture/update",param,res => {
		callback(res);
	});

}

//选择图片的删除
export function reqdelPicmessage(param,callback){
	requestPostData("/rollPicture/del",param,res => {
		callback(res);
	});
}

//导出工作记录
export function reqdelPutout(param,callback){
	requestData("/workLog/export", param, res => {
		callback(res);
	});
}


//查询短信记录
export function reqNewsOpertion(param,callback){
	requestData("/shortMsgTemplate/packet", param, res => {
		callback(res);
	});
}

//增加短信模板
export function reqNewsInsert(param,callback){
	requestPostData("/shortMsgTemplate/insert", param, res => {
		callback(res);
	});
}

//修改短信模板
export function reqNewsUpdate(param,callback){
	requestPostData("/shortMsgTemplate/update", param, res => {
		callback(res);
	});
}

//删除短信模板
export function reqNewsDelete(param,callback){
	requestPostData("/shortMsgTemplate/delete", param, res => {
		callback(res);
	});
}

//查询短信发送记录
export function reqSendNews(param,callback){
	requestData("/shortMsgOrder/packet", param, res => {
		callback(res);
	});
}
